package com.no1.zy.controller.error;

import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/error")
public class MyBaseError implements ErrorController {
    @Override
    public String getErrorPath(){
        return "error/error";
    }

    @RequestMapping
    public  String error(){
        return getErrorPath();
    }
}
